﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Settlement.Domain;
using T.Settlement.Repository.SettlementInterface;

namespace T.Settlement.Repository.SettlementImpl
{
    /// <summary>
    /// 应付/收费仓储实现
    /// </summary>
    public class ExpensesSRepository : SBaseRepository<Expenses>, IExpensesSRepository
    {
        public ExpensesSRepository(SEFDbcontext sEFdbcontext) : base(sEFdbcontext)
        {
        }
        /// <summary>
        /// 添加应付/收费
        /// </summary>
        /// <param name="expenses">实体</param>
        /// <returns></returns>
        public async Task<int> AddExpenses(Expenses expenses)
        {
            return await base.AddAsync(expenses);
        }
        /// <summary>
        /// 显示所有应付/收费
        /// </summary>
        /// <returns></returns>
        public async Task<List<Expenses>> GetAllExpenses()
        {
            return await base.GetAllAsync();
        }
        /// <summary>
        /// 删除应付/收费
        /// </summary>
        /// <param name="expenses"></param>
        /// <returns></returns>
        public async Task<int> DelExpenses(Expenses expenses)
        {
            return await base.Update(expenses);
        }
        /// <summary>
        /// 修改应付/收费
        /// </summary>
        /// <param name="expenses"></param>
        /// <returns></returns>
        public async Task<int> UpdExpenses(Expenses expenses)
        {
            return await base.Update(expenses);
        }

    }
}
